import React, { Component } from 'react';
import { withRouter } from "react-router-dom";
class InputBox extends Component {
    render() {
        return (
            <header>
                <div className='logo'></div>
                <div className="input-box" onClick={()=>{this.props.history.push('/search')}}>
                    <input type="text" placeholder='搜索商品' />
                    <div>
                        <i className='iconfont icon-kefu'></i>
                        <span>客服</span>
                    </div>
                </div>
            </header>
        );
    }
}

export default withRouter(InputBox);